package studentManage;

import java.util.List;

public class Admin extends Person{

    private String number;
    private String username;
    private String password;
    private String sex;
    private Integer age;
    private Integer role;

    public Admin() {

    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Admin(String number, String username, String password, String sex, Integer age, Integer role) {
        this.number = number;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.age = age;
        this.role = role;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "number='" + number + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", role=" + role +
                '}';
    }
}
